﻿using System;
using Newtonsoft.Json;

namespace OrkutAPILibrary.Entities
{
    /// <summary>
    /// Orkut Video
    /// </summary>
    public class OrkutVideo
    {
        /// <summary>
        /// Gets or sets the duration in sec.
        /// </summary>
        /// <value>The duration in sec.</value>
        [JsonProperty(PropertyName = "durationInSec")]
        public int DurationInSec { get; internal set; }

        /// <summary>
        /// Gets or sets the type.
        /// </summary>
        /// <value>The type.</value>
        [JsonProperty(PropertyName = "type")]
        public string Type { get; internal set; }

        /// <summary>
        /// Gets or sets the URL.
        /// </summary>
        /// <value>The URL.</value>
        [JsonProperty(PropertyName = "url")]
        public Uri Url { get; internal set; }

        /// <summary>
        /// Gets or sets the id.
        /// </summary>
        /// <value>The id.</value>
        [JsonProperty(PropertyName = "id")]
        public string Id { get; internal set; }

        /// <summary>
        /// Gets or sets the video title.
        /// </summary>
        /// <value>The video title.</value>
        [JsonProperty(PropertyName = "title")]
        public string VideoTitle { get; internal set; }

        /// <summary>
        /// Gets or sets the video description.
        /// </summary>
        /// <value>The video description.</value>
        [JsonProperty(PropertyName = "description")]
        public string VideoDescription { get; internal set; }

        /// <summary>
        /// Gets or sets the video container.
        /// </summary>
        /// <value>The video container.</value>
        [JsonProperty(PropertyName = "container")]
        public string VideoContainer { get; internal set; }

        /// <summary>
        /// Gets or sets the thumbnail URL.
        /// </summary>
        /// <value>The thumbnail URL.</value>
        [JsonProperty(PropertyName = "thumbnailUrl")]
        public Uri ThumbnailUrl { get; internal set; }
    }
}
